let path = require('path');         //路径处理模块
let express = require('express');   //加载框架
let app = express();                //调用框架顶级方法得到一个对象
let hbs = require('hbs'); 
express.Router();
let routers = express.Router();



// 设置session

routers.get('/setSession',(req,res)=>{
    // 登录后获取用户名
    req.session.isLogin = 'true';
    req.session.username = '小明'
    res.send('登录状态已保存')
})

module.exports = routers
